// mockjs的测试数据(模拟后台)

import { Random } from 'mockjs'
import { MockMethod } from 'vite-plugin-mock'
export default [
  {
    url: '/api/upload/image',
    method: 'post',
    response: () => {
      return {
        code: 200,
        message:"上传成功",
        errno:0, //wangEditor返回必须要有error类型
         status:'success',
        data: {
           url:"../../../public/imgs/tw.jpg"
        },
      }
    },
  }
 
] as MockMethod[]